package cn.com.hbhgkj.dao;

import java.util.List;

import cn.com.hbhgkj.bussiness.ReviewCode;
import cn.com.hbhgkj.common.DaoException;
import cn.com.hbhgkj.common.Pagination;
import cn.com.hbhgkj.pojo.User;

public interface UserDao extends GenericDao<User, Long> {

	public List<User> getAllApplicants() throws DaoException;

	public List<User> findUsersByUserName(String userName) throws DaoException;

	/*
	 * 功能：通过单位名称或姓名查找用户
	 */
	public List<User> findUsersByName(String name) throws DaoException;

	public List<User> findByReviewCode(ReviewCode reviewCode,
			Pagination pagination) throws DaoException;

	public void updateState(User applicant) throws DaoException;

	public List<User> findByReviewCodes(ReviewCode[] reviewCodes,
			Pagination pagination) throws DaoException;

	public List<User> findLikeCompanyName(String companyName,
			Pagination pagination) throws DaoException;
}
